<?php require_once ('traitements/forum.php'); ?>

<!DOCTYPE html>
<html lang="fr">
<head>
	<meta charset="utf-8">
	<title>Forum Egypt</title>
	
	<link rel="stylesheet" media="screen" href="../wiki/css/reset.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="../wiki/css/screen.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="css/forum.css" type="text/css" />
</head>
<body>
	
	<div id="header">
		<p><img src="images/logo-forum.png" alt="Forum général du jeu" /></p>
	</div>
	
	<?php require_once('nav.php'); ?>
	
	<div id="main">
		
		<?php 
			if( isset($_GET) && !empty($_GET)){
				getOneSujet($db, $_GET["sujet_id"]); 
		?>		
			<div class="reponse_message_sujet">
				<form id="reponse_sujet" method="post" action="traitements/forum.php">
					<ul>
						<li class="pseudoArea">
							<label for="pseudo">Auteur :</label>
							<input id="pseudo" name="pseudo" type="text" disabled value="celine" />
							<input id="auteur" name="auteur" type="hidden" value="celine" />
						</li>
						<li class="messageArea">
							<label for="message">Message *</label>
							<textarea id="message" name="message" cols="50" rows="15"></textarea>
						</li>
						<li class="last">
							<input id="send" name="send" type="submit" value="Envoyer" />
							<input id="sujet" name="sujet" type="hidden" value="<?php echo $_GET["sujet_id"];?>" />
							<input id="validReponse" name="validReponse" type="hidden" value="validReponse" />
						</li>
					</ul>
				</form>
			</div>
		<?php }
			else{
				echo "Une erreur est survenue avec l'identification des messages.";
			}
		?>
	</div>
	
	<div id="footer">
		
	</div>
	
</body>
</html>